<?php
/*
|--------------------------------------------------------------------------
| Hiti GLOBAL CONFIG
|--------------------------------------------------------------------------
|
*/

define('QUOTES_GPC', (ini_get('magic_quotes_gpc') ? TRUE : FALSE));

define('DATEUP', '2014-06-21'); 	// YYYY-MM-DD
define('HOST_DATE_REG', '2014-06-21'); // YYYY-MM-DD
define('HOST_YEAR_REG', 1);
define('DOMAIN_DATE_REG', '2013-01-22'); // YYYY-MM-DD
define('DOMAIN_YEAR_REG', 1);

define('MAILDIR', '../../../mail/trungtamden.com/');
$i = 0;
$folder_level = '';
while (!file_exists($folder_level.'config.php'))
{
	$folder_level .= '../';
    $i++;
	if($i == 5) die('config file not found');
}
define('DIR', $folder_level);
define('ADMDIR', DIR.'quanly/');
define('UPLDIR', DIR.'upload/');
define('IMG', DIR.'images/');
define('PRO', DIR.'upload/products/');
define('THUMBS', DIR.'upload/products/thumbs/');
define('BRAND', DIR.'upload/brands/');
define('CATS', DIR.'upload/categories/');
define('EMAIL', DIR.'upload/subscribers/');
define('INTERF', DIR.'upload/interface/');
define('NEWS', DIR.'upload/news/');
define('VIDEO', DIR.'upload/videos/');
define('PRICE', DIR.'upload/pricelists/');
define('PROJ', DIR.'upload/projects/');
define('SERV', DIR.'upload/services/');

define('SESS_COOKIE_NAME', 'ttden_session');
define('COOKIE_PREFIX', 'ttden_');
define('COOKIE_TIME', 1800);

define('LOGO_COLOR', IMG.'copyright-logo-color.png');
define('LOGO_GRAY', IMG.'copyright-logo-gray.png');

define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'hiti_sanna');